package com.hspedu.mhl.domain;

import java.util.Date;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2023/04/09/20:35
 */
/*
这个是一个javabean  可以和多张表对应
 */
public class MultiTableBean {
    private Integer id;
    private String billId;
    private Integer menuID;
    private Integer nums;
    private Double money;
    private Integer diningTableId;
    private Date billDate;
    private String state;

    //增加一个来自menu表的列name
    private String name;
    //假如再加一个
    private String price2;

    public MultiTableBean(Integer id, String billId, Integer menuID, Integer nums, Double money, Integer diningTableId, Date billDate, String state, String name, String price2) {

        this.id = id;
        this.billId = billId;
        this.menuID = menuID;
        this.nums = nums;
        this.money = money;
        this.diningTableId = diningTableId;
        this.billDate = billDate;
        this.state = state;
        this.name = name;
        this.price2 = price2;
    }

    public MultiTableBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public Integer getMenuID() {
        return menuID;
    }

    public void setMenuID(Integer menuID) {
        this.menuID = menuID;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getDiningTableId() {
        return diningTableId;
    }

    public void setDiningTableId(Integer diningTableId) {
        this.diningTableId = diningTableId;
    }

    public Date getBillDate() {
        return billDate;
    }

    public void setBillDate(Date billDate) {
        this.billDate = billDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice2() {
        return price2;
    }

    public void setPrice2(String price2) {
        this.price2 = price2;
    }

    @Override
    public String toString() {
        return menuID + "\t\t" +
                nums + "\t\t" +
                money + "\t\t" +
                diningTableId + "\t\t" +
                billDate + "\t\t" +
                state + "\t\t" +
                name + "\t\t" +
                price2;
    }
}
